import 'package:dmz/base/pageWidget/base_stateful_widget.dart';
import 'package:dmz/business/login/widgets/login_widgets.dart';
import 'package:dmz/business/mine/controller/seting_main_controller.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class SetChangePhonePage extends BaseStatefulWidget<SetingMainController> {
  const SetChangePhonePage({super.key});

  @override
  String titleString() => '更换手机号'.tr;

  @override
  get updateId => 'setPhone';

  @override
  bool delectControll() => false;

  @override
  Widget buildContent(BuildContext context) {
    return Obx(() => LoginWidgets.inputWdiegts(true,
        btnTitle: '确认'.tr,
        photneController: controller.setPhoneNumCt,
        codeController: controller.setPhoneCodeCt,
        codeType: controller.snedCodeType.value,
        countdownStr: '${controller.counter.value}s',
        sendCode: controller.snedCode,
        netxt: controller.changePhone));
  }
}
